
package com.zsrt.day20170427.ch03;


import org.junit.Test;

public class DesignModelTest {

	@Test
	public void testName() throws Exception {
		Moon moon1 = Moon.getInstance();
		Moon moon2 = Moon.getInstance();
		
		//两个地址一样
		System.out.println(moon1);
		System.out.println(moon2);
	}
}
